import {RouteRecordRaw, RouterView} from 'vue-router'

const routeName = 'strategy'

export const strategy: Array<RouteRecordRaw> = [
    {
        path: '/strategy',
        name: routeName,
        redirect: '/strategy/license',
        component:  () => import(/* webpackChunkName: "strategy-index" */ '@/views/strategy/index.vue'),
        meta: {
            title: '策略管理',
        },
        children: [
            {
                path: 'license',
                name: `${routeName}-license`,
                meta: {
                    title: '证书管理',
                },
                component: () => import(/* webpackChunkName: "strategy-license" */ '@/views/strategy/components/license/license.vue'),
            },
            {
                path: 'userstrategy',
                name: `${routeName}-userstrategy`,
                meta: {
                    title: '用户策略',
                },
                component: () => import(/* webpackChunkName: "strategy-userstrategy" */ '@/views/strategy/components/userstrategy/userstrategy.vue')
            },
            {
                path: 'cipher',
                name: `${routeName}-cipher`,
                meta: {
                    title: '口令控制',
                },
                component: () => import(/* webpackChunkName: "strategy-cipher" */ '@/views/strategy/components/cipher/cipher.vue')
            },
            {
                path: 'whiteList',
                name: `${routeName}-whiteList`,
                meta: {
                    title: '白名单',
                },
                component: () => import(/* webpackChunkName: "strategy-whiteList" */ '@/views/strategy/components/whiteList/white-list.vue')
            },
            {
                path: 'blackList',
                name: `${routeName}-blackList`,
                meta: {
                    title: '黑名单',
                },
                component: () => import(/* webpackChunkName: "strategy-blackList" */ '@/views/strategy/components/blackList/black-list.vue')
            },
            {
                path: 'docControl',
                name: `${routeName}-docControl`,
                meta: {
                    title: '文件管控',
                },
                component: () => import(/* webpackChunkName: "strategy-docControl" */ '@/views/strategy/components/docControl/doc-control.vue')
            },
            {
                path: 'docOut',
                name: `${routeName}-docOut`,
                meta: {
                    title: '外部介质管控',
                },
                component: () => import(/* webpackChunkName: "strategy-docOut" */ '@/views/strategy/components/docOut/doc-out.vue')
            },
            {
                path: 'portManagement',
                name: `${routeName}-portManagement`,
                meta: {
                    title: '端口管理',
                },
                component: () => import(/* webpackChunkName: "strategy-portManagement" */ '@/views/strategy/components/portManagement/port-management.vue')
            },
            {
                path: 'firewall',
                name: `${routeName}-firewall`,
                meta: {
                    title: '入站规则',
                },
                component: () => import(/* webpackChunkName: "strategy-firewall" */ '@/views/strategy/components/firewall/firewall.vue')
            },
            {
                path: 'firewallout',
                name: `${routeName}-firewallout`,
                meta: {
                    title: '出站规则',
                },
                component: () => import(/* webpackChunkName: "strategy-firewallout" */ '@/views/strategy/components/firewallout/firewallout.vue')
            },
            // {
            //     path: 'modelSetting',
            //     name: `${routeName}-modelSetting`,
            //     meta: {
            //         title: '模式管理',
            //     },
            //     component: () => import(/* webpackChunkName: "strategy-modelSetting" */ '@/views/strategy/components/modelSetting/model-setting.vue')
            // },
            {
                path: 'template',
                name: `${routeName}-template`,
                meta: {
                    title: '模板管理',
                },
                component: () => import(/* webpackChunkName: "strategy-template" */ '@/views/strategy/components/template/template-list.vue')
            }
        ]
    }
]
